//
// Created by wyh on 2025-06-16 20:24.
//
#include <iostream>
#include "utility/logger.h"
#include "utility/singleton.h"

using namespace std;
using namespace wyh::utility;

int main(int argc, char **argv) {
    auto logger = Singleton<Logger>::instance();

    logger->open("./../main.log");
    logger->set_max_size(2048);
    logger->set_console(true);
    for (int i = 0; i < 10; i++)
    {
        log_debug("%s", "it is an debug");
        log_info("%s", "it is an info");
        log_warn("%s", "it is an warn");
        log_error("%s","it is an error");
        log_fatal("%s","it is an fatal");
    }

    return 0;
}